/*
 * Copyright 2008-2023 dexian.vip. All rights reserved.
 * Support: http://www.dexian.vip
 * License: http://www.dexian.vip/license
 */

package vip.dexian.admin.dto;

import vip.dexian.core.base.bean.BaseDTO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.Serial;

/**
 * 部门DTO
 *
 * @author 挺好的 2023年05月31日 9:37
 */

@Data
@NoArgsConstructor
@AllArgsConstructor
@SuperBuilder

public class DepartmentDTO extends BaseDTO <Long> {


    @Serial
    private static final long serialVersionUID = 6953556941980242490L;

    /**
     * 部门名称
     */
    private String name;

    /**
     * 是否启用
     */
    private Boolean isEnabled;

    /**
     * 部门层级
     */
    private Integer grade;

    /**
     * 排序
     */
    private Integer order;

    /**
     * 上级分类ID
     */
    private Long parentId;

    /**
     * 当前部门的 tree path
     */
    private String treePath;
}
